// admin/system/model/sys_user_post.go
package model

// SysUserPost 用户与岗位关联表
type SysUserPost struct {
	UserID int64 `json:"user_id" gorm:"column:user_id;primaryKey;comment:用户ID"`
	PostID int64 `json:"post_id" gorm:"column:post_id;primaryKey;comment:岗位ID"`
}

// TableName 获取表名
func (SysUserPost) TableName() string {
	return "sys_user_post"
}
